package fr.efrei.musicpliz.entity;

import java.io.File;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;

/**
 * abstract file class to provide the basic data
 */
@Entity
@DiscriminatorColumn(name = "typeFile")
@SuppressWarnings("serial")
public abstract class AbstractFile extends AbstractEntity {
	private String album;
	private String title;
	private String description;
	private File file;

	public AbstractFile(String album, String title, String description,
			File file) {
		this.album = album;
		this.title = title;
		this.description = description;
		this.file = file;
	}

	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

}
